package com.leyou.common.exception;

import lombok.Data;
import org.joda.time.DateTime;


@Data
public class ExceptionResult {
    private Integer status;
    private String timestamp;
    private String message;

    public ExceptionResult(LyException e){

        this.status = e.getStatus();
        this.message = e.getMessage();
        this.timestamp = DateTime.now().toString("yyyy-MM-dd HH:mm:ss");
    }
}
